package com.roncoo.course.controller;


import com.roncoo.course.entity.EduSubject;
import com.roncoo.course.service.EduSubjectService;
import org.springframework.web.bind.annotation.*;

import org.springframework.stereotype.Controller;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wdf
 * @since 2021-03-30
 */
@Controller
@RequestMapping("/eduSubject")
public class EduSubjectController {
    @Resource
    private EduSubjectService eduSubjectService;

    @PostMapping("findAll")
    @ResponseBody
    public List<EduSubject> findAll(){
        //System.out.println("545458");
        //System.out.println(eduSubjectService.findAll());
        return eduSubjectService.findAll();
    }
}

